package cn.cdeden.knowledge.mapper;

import cn.cdeden.knowledge.domain.SysCalendar;
import cn.cdeden.knowledge.domain.SysResource;
import cn.cdeden.knowledge.domain.dto.SysResourceDto;
import cn.cdeden.knowledge.domain.dto.SysResourceQueryParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

;

/**
* @author guojunxu
* @date 2024-07-09
*/
@Repository
public interface SysResourceMapper extends BaseMapper<SysResource> {

    IPage<SysResourceDto> getPage(IPage<SysResource> page, @Param("query") SysResourceQueryParam query);

    List<SysCalendar> resourceFollowShow(@Param("resourceIds") List<Long> resourceIds, @Param("startTime") String startTime, @Param("endTime") String endTime);
}
//public interface SysResourceMapper extends BaseMapper<SysResource> {
//
//}
